package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 题目管理对象 questions
 * 
 * @author ruoyi
 * @date 2025-05-09
 */
public class Questions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long questionId;

    /** 题型 */
    @Excel(name = "题型")
    private String questionType;

    /** 题干 */
    @Excel(name = "题干")
    private String content;

    /** 选项内容（JSON数组，如["A", "B", "C", "D"]） */
    @Excel(name = "选项内容", readConverterExp = "J=SON数组，如[\"A\",,\"=B\",,\"=C\",,\"=D\"]")
    private String options;

    /** 正确答案（如"A"或"0"） */
    @Excel(name = "正确答案", readConverterExp = "如=\"A\"或\"0\"")
    private String correctAnswer;

    /** 难度等级（1-5） */
    @Excel(name = "难度等级", readConverterExp = "1=-5")
    private Integer difficulty;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }

    public void setQuestionType(String questionType) 
    {
        this.questionType = questionType;
    }

    public String getQuestionType() 
    {
        return questionType;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setOptions(String options) 
    {
        this.options = options;
    }

    public String getOptions() 
    {
        return options;
    }

    public void setCorrectAnswer(String correctAnswer) 
    {
        this.correctAnswer = correctAnswer;
    }

    public String getCorrectAnswer() 
    {
        return correctAnswer;
    }

    public void setDifficulty(Integer difficulty) 
    {
        this.difficulty = difficulty;
    }

    public Integer getDifficulty() 
    {
        return difficulty;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("questionId", getQuestionId())
            .append("questionType", getQuestionType())
            .append("content", getContent())
            .append("options", getOptions())
            .append("correctAnswer", getCorrectAnswer())
            .append("difficulty", getDifficulty())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
